package com.loong.common.enumerate;

import lombok.Getter;

/**
 * @Description: 产品的状态：代理商产品状态、商品销售状态
 * @Author: 刘群
 * @Date: 2020/11/27 9:53
 */
@Getter
public enum ProductStatus {
    ON_SELL(1,"on_sell","销售中"),
    SOLD_OUT(2,"sole_out","已售罄"),
    UN_SALE(3,"un_sale","未开售"),
    OFFLINE(4,"offline","下架"),
    FIELD_CHANGE(5,"field_change","商品属性已修改")
    ;
    private int code;
    private String name;
    private String desc;

    ProductStatus(int code, String name, String desc) {
        this.code = code;
        this.name = name;
        this.desc = desc;
    }

}
